import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
class FrameTest extends JFrame   implements MouseMotionListener { 
	public FrameTest(){	
		this.addMouseMotionListener(this);
		this.setSize(800,600);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
	}		
	public void	mouseDragged(MouseEvent e){}
	public	void mouseMoved(MouseEvent e){
		int X = e.getX();	int Y = e.getY();
		this.setTitle(X + "," + Y);
	}
	public static void main (String[] args)  {	
		new FrameTest().setVisible(true);
	}

}